package com.fit.lov.classes;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.tapestry5.OptionGroupModel;
import org.apache.tapestry5.OptionModel;
import org.apache.tapestry5.util.AbstractSelectModel;

import com.fit.entities.classes.Classes;
import com.fit.entities.course.Course;

public class ClassesSelectModel  extends AbstractSelectModel {
	private Collection<Classes> classess; 

	public ClassesSelectModel(Collection<Classes> classes) {
		this.classess = classes;
	}

	public List<OptionGroupModel> getOptionGroups() {
		return null;
	}

	public List<OptionModel> getOptions() {
		List<OptionModel> list = new ArrayList<OptionModel>();
		for (Classes t : classess) {
			list.add(new ClassesOptionModel(t));
		}
		return list;
	}
}
